﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace MS.InformationManagement.DAL.DocumentCenter
{
    
    public partial class Devolucion
    {
        public int IntentosEnvios
        {
            get
            {
                using (var dc = new DCDocumentCenterDataContext(SPContext.Current.Web.Url))
                {
                    return (from item in dc.Devoluciones
                            where item.NoRadicado == NoRadicado
                            select item).Count();
                }
            }            
        }
    }
}
